<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href='__PUBLIC__/Js/admin_adver.js' />
<load href="__PUBLIC__/Js/jquery-1.7.2.min.js" />
<script>
	$(document).ready(function(){
		$(":radio[value={$adver.type}]").attr('checked',true);
		$(":radio[value={$adver.type}]").click();
	});
</script>
</head>
<body id="main">

<div class="map">
	管理首页 &gt;&gt; 内容管理 &gt;&gt; <strong id="title">修改广告</strong>
</div>

<ol>
	<li><a href="__URL__/index" class="selected">广告列表</a></li>
	<li><a href="__URL__/add">新增广告</a></li>
	<li><a href="__URL__/edit/id/{$adver.id}">修改广告</a></li>
</ol>
<form method="post" name="content" action="__URL__/update">
	<input type="hidden" name="id" value="{$adver.id}" />
	<input type="hidden" name="adv" />
	<table cellspacing="0" class="left">
		<tr><td>广告类型：<input type="radio" name="type" onclick="adver(1)" value="1" /> 文字广告
									<input type="radio" name="type" onclick="adver(2)" value="2"  /> 头部广告690x80
									<input type="radio" name="type" onclick="adver(3)" value="3" /> 侧栏广告270x200
		</td></tr>
		<tr><td>广告标题：<input type="text" name="title" value="{$adver.title}" class="text" /> (* 广告标题不得小于两位，不得大于20位！)</td></tr>
		<tr><td>广告链接：<input type="text" name="link" value="{$adver.link}" class="text" /> (* 广告链接不得为空！)</td></tr>
		<tr id="thumbnail" {$pic}><td>广告图片：<input type="text" name="thumbnail" value="{$thumbnail}" class="text" readonly="readonly" /> 
									<span id="up">{$up}</span>
									<img name="pic" src="{$adver.thumbnail}" style="display:block;" /> ( * 必须是jpg,gif,png，并且200k内)
		</td></tr>
		<tr><td>广告描述：<textarea name="info">{$adver.info}</textarea> (* 描述不得大于200位！)</td></tr>
		<tr><td>是否生成：<input type="radio" name="state" value="1" {$left_state} /> 是
									<input type="radio" name="state" value="0" {$right_state} /> 否  </td></tr>
		<tr><td><input type="submit" name="send" value="修改广告" onclick="return checkAdver();" class="submit level" /> [ <a href="{$prev_url}">返回列表</a> ]</td></tr>
	</table>
</form>
</body>
</html>